<script setup>

//导入自定义的路由组件
import router from "@/router/index.js";

const login = ()=>{
  console.log("登录操作。。。")
  //编程式路由
  router.push('/home/index')

}
</script>

<template>
    <h3>登录页面</h3>
  <form >
   <p>账户：<input type="text"></p>
    <p>密码：<input type="password"></p>
    <p><button @click="login">登录</button></p>
    <p><RouterLink to="/register">去注册...</RouterLink></p>
  </form>
</template>

<style scoped>

</style>